wayland: Signal gtk-shell surface destruction to the server
authorSebastian Keller <skeller@gnome.org>
Thu, 28 Jan 2021 21:31:03 +0000 (22:31 +0100)
committerSebastian Keller <skeller@gnome.org>
Thu, 28 Jan 2021 21:31:03 +0000 (22:31 +0100)
commit04cf5044dad4c223437423076fa757a3d8a838d2
tree5e169037ee68e16fb41807dfca168b95a585e154
parentb005cd0bbd3e5dd1d4c2ffe2bf7b98754bdaec86
wayland: Signal gtk-shell surface destruction to the server

This adds a "release" destructor for the gtk_surface1 interface which
signals to the server that a surface has been destroyed on the client
side, which the current "destroy" does not do.

Ideally the protocol would have specified a destroy request marked as
destructor to handle this automatically, however this is no longer
possible due to the destroy method being implicitly generated in the
absence of an explicit request in the protocol. Adding a destroy request
marked as destructor now would generate a new destroy method that
unconditionally would send the request to the server, which would break
clients running on servers not supporting that request.
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdksurface-wayland.c
gdk/wayland/protocol/gtk-shell.xml